<%@ page contentType="text/html; charset=UTF-8" pageEncoding="UTF-8"%>
<%@ include file="/WEB-INF/jsp/common/include/taglibs.jsp"%>

<script type="text/javascript">
//입금확인
function sendSave(){
	if(confirm("입금처리하시겠습니까?")){
		$("#frmData").submit();
	}
}
</script>

<%@ include file="/WEB-INF/jsp/usr/pe/re/pere_top_new7.jsp"%>

<table width="100%" border="0" cellspacing="0" cellpadding="3">
	<tr align="center">
		<td bgcolor="#edecec"><table width="100%" border="0"
				cellspacing="1" cellpadding="0">
				<tr>
					<td height="33" align="center" bgcolor="#fafc98"><table
							width="100%" border="0" cellspacing="0" cellpadding="0">
							<tr>
								<td width="20%">
<!-- 									<table border="0" cellspacing="0" -->
<!-- 										cellpadding="0"> -->
<!-- 										<tr> -->
<!-- 											<td width="30" align="center"><input type="checkbox" -->
<!-- 												name="ck_all" id="ck_all" -->
<!-- 												onclick="select_all_rsv(this.checked)"></td> -->
<!-- 											<td>사용</td> -->
<!-- 										</tr> -->
<!-- 									</table> -->
								</td>
								<td width="60%" align="center"><table border="0"
										cellspacing="0" cellpadding="0">
										<tr>
											<td width="75" class="pld">
												환불요청
											</td>
											<td width="50"><strong>현황: 총</strong></td>
											<td width="35" class="pld">
												${mapCnts.cnt3 }
											명</td>
											<td><strong>환불 대기자가 있습니다</strong></td>
										</tr>
									</table></td>
								<td width="20%">&nbsp;</td>
							</tr>
						</table></td>
				</tr>
			</table>
			<form action="./pere700T.do" id="frmData" method="post">
			<input name="p_id" value="${param.p_id }" type="hidden"/>
			<table width="100%" border="1" cellpadding="0" cellspacing="0"
				bordercolor="#edecec" style="border-collapse: collapse;"
				bgcolor="#FEFEF6">
             <tr align="center" class="greenb2">
                <!--td width="30">선택</td-->
                <td width="30">번호</td>
                <td>예약자/휴대폰번호</td>
                <td>객실명</td>
                <td><table border="0" cellspacing="0" cellpadding="1">
                  <tr>
                    <td>이용일자</td>
                  </tr>
                  <tr>
                    <td>예약일자</td>
                  </tr>
                </table></td>
                <td>이용기간</td>
                <td>기준/예약</td>
                <td>요금</td>
                <td><table border="0" cellspacing="0" cellpadding="0">
                    <tr>
                      <td>예약상태</td>
                    </tr>
                    <tr>
                      <td>환불계좌</td>
                    </tr>
                </table></td>
                <td class="paddtop4">부가서비스<br>
                  신청 여부</td>
              </tr>

	<c:if test="${list !=null && fn:length(list)>0 }">
		<c:forEach var="map1" items="${list}" varStatus="status">
		<tr align="center">
				<td>${status.count }</td>
                <td class="paddtop4"><table width="90" border="0" cellpadding="0" cellspacing="0" style="cursor: pointer;"  onclick="location.href='./pere702Q.do?re_no=${map1.re_no }&p_id=${param.p_id}'">

                  <tr>
                    <td width="36" class="ptradgrn">
                    	${map1.reservation_nm }
						<c:if test="${'A'==map1.add_type }">
							<span class="ptrend">[관리자]</span>
						</c:if>
                    </td>
                  </tr>
                  <tr>
                    <td align="center" class="ptradgrn">${map1.r_phone1 }-${map1.r_phone2 }-${map1.r_phone3 }</td>
                  </tr>
                </table></td>
                <td><table border="0" cellpadding="0" cellspacing="0">
                  <tr>
                    <td class="ptradgrn">${map1.room_nm }</td>
                  </tr>
                </table></td>
                <td><table border="0" cellpadding="1" cellspacing="0">
                  <tr>
                    <td class="ptradgrn">${map1.reservation_dt }</td>
                  </tr>
                  <tr>
                    <td class="ptradgrn"></td>
                  </tr>
                </table></td>
                <td><table border="0" cellpadding="0" cellspacing="0">
                  <tr>
                    <td class="ptradgrn">${map1.day_cnt }</td>
                  </tr>
                </table></td>
                <td><table border="0" cellpadding="0" cellspacing="0">
                  <tr>
                    <td class="ptradgrn">${map1.use_man_cnt }</td>
                  </tr>
                </table></td>
                <td><table border="0" cellpadding="0" cellspacing="0" class="ptradgrn">
                  <tr>
                    <td><fmt:formatNumber value="${map1.total_pay }" pattern="#,###"/></td>
                  </tr>
                </table></td>
                <td><table border="0" cellpadding="1" cellspacing="0">
                  <tr>
                    <td align="center"><fmt:formatNumber value="${map1.penalty_pay }" pattern="#,###"/></td>
                    <td align="center" class="ptrstandby">
                    	<c:if test="${map1.re_status=='R' }">환불요청</c:if>
                    </td>
                  </tr>
                  <tr>
                    <td colspan="2" align="center">${map1.account_type_nm } ${map1.account_no} ${map1.account_usr_nm }</td>
                  </tr>
                </table></td>
                <td><table border="0" cellpadding="0" cellspacing="0">
                  <tr>
                    <td>
                    	<c:if test="${map1.add_svc==0 }">NO</c:if>
                    	<c:if test="${map1.add_svc!=0 }">Yes</c:if>
                    </td>
                  </tr>
                </table></td>
              </tr>
		</c:forEach>
	</c:if>

			</table>
			</form>

		</td>
	</tr>
</table>
<!-- content 종료 -->

	
            <table width="100%" border="0" cellspacing="0" cellpadding="0">
        <tr>
          <td align="center">
			항목을 선택하신후에 처리하실 수 있습니다.
			</td>
        </tr>
        <tr>
          <td>&nbsp;</td>
        </tr>
        <tr>
          <td height="3" bgcolor="#86ad29"></td>
        </tr>
        <tr>
          <td style="padding-top: 2px;"><%@ include file="/WEB-INF/jsp/usr/pe/re/footer.jsp"%></td>
        </tr>
      </table></td>
  </tr>
</table>